﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Net.Mail;
using BusinessObjects.BO_GetObjects;
using System.Data;
using System.IO;
using System.Xml;
using Quartz;
using DigiCorp;
using System.Configuration;

/// <summary>
/// Summary description for AutoSiteMaps
/// </summary>
public class AutoSiteMaps : IJob {
    public AutoSiteMaps() {
    }
    public void Execute(JobExecutionContext context) {
        DigiCorp.DigiCorpCrawler.url = ConfigurationManager.AppSettings["url"].ToString();
        DigiCorp.DigiCorpCrawler.extensionsIgnore = ConfigurationManager.AppSettings["extensionsIgnore"].ToString();
        DigiCorp.DigiCorpCrawler.priority = ConfigurationManager.AppSettings["priority"].ToString();
        DigiCorp.DigiCorpCrawler.changeFreq = ConfigurationManager.AppSettings["changeFreq"].ToString();
        DigiCorp.DigiCorpCrawler.sitemapPath = Setting.PathCron;
        DigiCorp.DigiCorpCrawler.Crawl();
    }
}